<%= form_for [:admin, @project_portfolio] do |f| -%>
<%= render :partial => "/shared/admin/error_messages", :locals => {
  :object => @project_portfolio,
  :include_object_name => true
  } %>
<div class='field'>
    <%= f.label :project_name -%>
    <%= f.text_field :project_name, :class => 'larger widest'  -%>
</div>
<div class='field'>
    <%= f.label :title -%>
    <%= f.text_field :title  -%>
</div>
<div class='field'>
    <%= f.label :thumbnail -%>
    <%= render :partial => "/shared/admin/image_picker", :locals => {
      :f => f,
      :field => :thumbnail_id,
      :image => @project_portfolio.thumbnail,
      :toggle_image_display => false
      } %>
</div>
<div class='field'>
    <%= f.label :image -%>
    <%= render :partial => "/shared/admin/image_picker", :locals => {
      :f => f,
      :field => :image_id,
      :image => @project_portfolio.image,
      :toggle_image_display => false
      } %>
</div>
<div class='field'>
    <%= f.label :tag_list -%>
    <%= f.text_field :tag_list  -%>
</div>
<div class='field'>
    <div id='page-tabs' class='clearfix ui-tabs ui-widget ui-widget-content ui-corner-all'>
        <ul id='page_parts'>
            <% [:description].each_with_index do |part, part_index| %>
            <li class='ui-state-default<%= ' ui-state-active' if part_index == 0 %>'>
                <%= link_to part.to_s.titleize, "##{part}" %>
            </li>
            <% end %>
        </ul>
        <div id='page_part_editors'>
            <% [:description].each do |part| %>
            <div class='page_part' id='<%= part %>'>
                <%= f.text_area part, :rows => 20, :class => 'wymeditor widest' -%>
            </div>
            <% end %>
        </div>
    </div>
</div>
<%= render :partial => "/shared/admin/form_actions",
  :locals => {
  :f => f,
  :continue_editing => false,
  :delete_title => t('delete', :scope => 'admin.project_portfolios.project_portfolio'),
  :delete_confirmation => t('message', :scope => 'shared.admin.delete', :title => @project_portfolio.project_name)
  } %>
<% end -%>
<% content_for :javascripts do %>
<script>
    $(document).ready(function() {
        page_options.init(false, '', '');
    });

</script>
<% end %> 